import request from '@/utils/request'

// 查询债券-持仓明细列表
export function listBondPositionDetails(query) {
  return request({
    url: '/positionInformation/bondPositionDetails/list',
    method: 'get',
    params: query
  })
}

// 查询债券-持仓明细详细
export function getBondPositionDetails(id) {
  return request({
    url: '/positionInformation/bondPositionDetails/' + id,
    method: 'get'
  })
}

// 查询债券-持仓明细详细
export function getDataByDealId(id) {
  return request({
    url: '/positionInformation/bondPositionDetails/getDataByDealId/' + id,
    method: 'get'
  })
}

// 保存债券-持仓明细
export function saveBondPositionDetails(data) {
  return request({
    url: '/positionInformation/bondPositionDetails/save',
    method: 'post',
    data: data
  })
}

// 删除债券-持仓明细
export function delBondPositionDetails(id) {
  return request({
    url: '/positionInformation/bondPositionDetails/' + id,
    method: 'delete'
  })
}

// 导出债券-持仓明细
export function exportBondPositionDetails(query) {
  return request({
    url: '/positionInformation/bondPositionDetails/export',
    method: 'get',
    params: query
  })
}
